﻿Imports System.Windows.Forms

Public Class frmArchiveRestore

    Public Enum enumResult
        None
        Overwrite
        Append
        NewTable
        Skip
        Cancel
    End Enum

    Public RestoreAction As enumResult = enumResult.None

    Private Sub btnAppend_Click(sender As Object, e As System.EventArgs) Handles btnAppend.Click, btnCancel.Click, btnNewTable.Click, btnOverwrite.Click, btnSkip.Click
        If sender Is btnAppend Then
            RestoreAction = enumResult.Append
        ElseIf sender Is btnCancel Then
            RestoreAction = enumResult.Cancel
        ElseIf sender Is btnNewTable Then
            RestoreAction = enumResult.NewTable
        ElseIf sender Is btnOverwrite Then
            RestoreAction = enumResult.Overwrite
        ElseIf sender Is btnSkip Then
            RestoreAction = enumResult.Skip
        End If
        Close()
    End Sub
End Class
